package com.park.service.impl.user;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.user.VisitInfoModel;
import com.park.client.service.user.VisitInfoService;
import com.park.dao.user.VisitInfoMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("visitService")
public class VisitInfoServiceImpl extends BaseServiceImpl<VisitInfoModel> implements VisitInfoService {
	
	@Autowired
	private  VisitInfoMapper  visitInfoMapper;

	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return visitInfoMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(VisitInfoModel record) {
		return visitInfoMapper.insertSelective(record)==1;
	}
	@Override
	public VisitInfoModel selectByPrimaryKey(Long id) {
		return visitInfoMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean insert(VisitInfoModel record) {
		return visitInfoMapper.insert(record)==1;
	}
	@Override
	public VisitInfoModel selectByIPAndDate(Map<String, Object> map) {
		return visitInfoMapper.selectByIPAndDate(map);
	}
	@Override
	public List<VisitInfoModel> selectPagination(VisitInfoModel visitInfo) {
		return visitInfoMapper.selectPagination(visitInfo);
	}
	@Override
	public Integer selectTotal(VisitInfoModel visitInfo) {
		return visitInfoMapper.selectTotal(visitInfo);
	}
	@Override
	public List<VisitInfoModel> selectByArea() {
		return visitInfoMapper.selectByArea();
	}
	

}
